<!DOCTYPE html>
<!-- saved from url=(0040)#/app/user/login.php -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


    <title>志愿者登录|志愿团体登录|志愿服务组织登录-志愿北京</title>
    <script src="/static/index/hm.js"></script><script type="text/javascript" src="/static/index/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="/static/index/common.js"></script>
    <script type="text/javascript" src="/static/index/jsencrypt.min.js"></script>

    <script type="text/javascript" src="/static/index/login.js"></script>

    <!--[if lte IE 6]>
    <script language="javascript" type="text/javascript" src="https://css.zhiyuanyun.com/lib/png.js" ></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('div, ul, li, input , a, a:hover, h2, b');
    </script>
    <![endif]-->
    <script type="text/javascript" src="/static/index/front.js"></script>
    <link href="/static/index/style.css" rel="stylesheet" type="text/css">
    <link href="/static/index/style(1).css" rel="stylesheet" type="text/css">
    <meta name="renderer" content="webkit|ie-stand">
    <script src="/static/lib/layer/layer.js"></script>
</head>
<body>
{include file="common/header"}
<div class="main login">
    <div class="wrap">
        <div id="ulogin">
            <div class="login_top">登录志愿北京</div>
            <ul>
                <form action="">
                <li><input class="ipt loginu" type="text" id="uname" name="name" value="" placeholder="用户名"></li>
                <li><input class="ipt loginp" type="password" name="password" autocomplete="off" id="upass" value="" placeholder="密码" ></li>
                <li><a href="javascript:void(0);" onclick="Login()" class="but1" id="but_lgoin">登 录</a></li>
                <li style="text-align:center;height:60px">
                    <div class="login_bot">没有账号？<a style="font-size:14px;" href="{:url('index/index/register')}">立即注册</a> 成为志愿者</div>
                </li>
                </form>
            </ul>


        </div>
    </div>
</div>
<script type="text/javascript">
    var childWindow;
    function toQzoneLogin()
    {
        childWindow = window.open("/app/api/oauth.qq.login.php","TencentLogin","width=450,height=320,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
    }

    function closeChildWindow()
    {
        childWindow.close();
    }

        function Login(){
            $.ajax({
                url:"{:url('index/index/login')}",
                type:"post",
                data:$('form').serialize(),
                dataType:'json',
                success:function(data) {
                    if(data.code == 1)
                    {
                        layer.msg(data.msg,{
                            icon:6,
                            time:2000
                        },function () {
                            location.href = data.url;
                        })
                    }else
                    {
                        layer.open(
                            {
                                title:'失败！',
                                content:data.msg,
                                icon:5,
                                anim:6
                            }
                        );
                    }
                }
            });
        }

</script>
{include file="common/footer"}


</body></html>
